package SV_EXEC_LOCAL;

import java.io.IOException;

public class Vulnerable_02 {
    void test() {
        //...
        String btype = System.getProperty("backuptype");
        String cmd = new String("cmd.exe /K \" c:\\util\\rmanDB.bat "
                + btype +
                "&&c:\\utl\\cleanup.bat\"");
        try {
            Runtime.getRuntime().exec(cmd);
        } catch (IOException e) {
            // Handle the exception
            e.printStackTrace();
        }
        //...
        //...
    }
}
